package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderInvoice;
import com.nbsaas.boot.order.api.domain.simple.OrderInvoiceSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 订单发票-列表对象转换器
*/

public class OrderInvoiceSimpleConvert implements Converter<OrderInvoiceSimple, OrderInvoice> {




@Override
public OrderInvoiceSimple convert(OrderInvoice source) {
    OrderInvoiceSimple result = new OrderInvoiceSimple();

                result.setInvoiceContent(source.getInvoiceContent());
                result.setOrderNo(source.getOrderNo());
                result.setOrderId(source.getOrderId());
                result.setIssueTime(source.getIssueTime());
                result.setExpressNo(source.getExpressNo());
                result.setReceiverName(source.getReceiverName());
                result.setTaxNumber(source.getTaxNumber());
                result.setInvoiceAmount(source.getInvoiceAmount());
                result.setRemark(source.getRemark());
                result.setAddDate(source.getAddDate());
                result.setSendTime(source.getSendTime());
                result.setReceiverAddress(source.getReceiverAddress());
                result.setTaxRate(source.getTaxRate());
                result.setReceiverPhone(source.getReceiverPhone());
                result.setExpressCompany(source.getExpressCompany());
                result.setInvoiceType(source.getInvoiceType());
                result.setId(source.getId());
                result.setInvoiceNo(source.getInvoiceNo());
                result.setTaxAmount(source.getTaxAmount());
                result.setInvoiceStatus(source.getInvoiceStatus());
                result.setInvoiceTitle(source.getInvoiceTitle());
                result.setLastDate(source.getLastDate());


    return result;
}

}